package io.kiki.task.server.common.util;

import io.kiki.task.common.core.enums.HeadersEnum;
import io.netty.handler.codec.http.HttpHeaders;


public final class HttpHeaderUtil {

    public static String getGroupName(HttpHeaders headers) {
        return headers.getAsString(HeadersEnum.GROUP_NAME.getKey());
    }

    public static String getNamespace(HttpHeaders headers) {
        return headers.getAsString(HeadersEnum.NAMESPACE.getKey());
    }

}
